Runs every unpaused frame, after movement, the room-edge/view checks and the collision step (S2.10 step 8).
step_end: fires every unpaused frame, after movementRuns every unpaused frame, after movement, after the beyond-room/room-edge/view checks, and after collisions are resolved - the last chance to react to where this frame's movement actually left this instance before drawing happens. See The order of a frame for exactly where this sits.
xprev = x;
yprev = y;Records this frame's final position for the next frame's own Step Begin to compare against.